home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6885 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  840 b 

  1. Path: fu.bekkoame.or.jp!usenet
  2. From: Giles Goddard <giles@fumin.nintendo.co.jp>
  3. Newsgroups: comp.lang.c++
  4. Subject: Q: Forward declaring class templates..
  5. Date: Tue, 20 Feb 1996 19:58:41 +0900
  6. Organization: Nintendo Co. Ltd. (Japan)
  7. Message-ID: <3129A961.41C6@fumin.nintendo.co.jp>
  8. NNTP-Posting-Host: osk0070.bekkoame.or.jp
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=iso-2022-jp
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP22)
  13.  
  14. Hi all,
  15.  
  16. Am I missing something simple? I can do this:
  17.  
  18. class Aclass;
  19.  
  20.  
  21. but not:
  22.  
  23. template<class TYPE> class Aclass;
  24.  
  25. because my compiler (CC on Irix 5.3) thinks I want Aclass to be
  26. locked in cement there and then. I dont, I just want to be able
  27. to declare a pointer to it before its been defined.
  28. Is this something inherent with templates? or is it me? or CC?
  29.  
  30.  
  31. TIA,
  32. giles
  33.